<template>
  <div>
    <!-- <Button type="primary" @click="jj">测试</Button> -->
    <div class="YJ_container">
      <WarnSystemTM :patent="patent" />
      <WarnSystemPT :trademark="trademark" />
      <WarnZx :patent_write="patent_write" />
      <WarnSystemCL :clue="clue" />
      
    </div>
  </div>
</template>


<script>
import WarnSystemTM from "./_currentView/warnSystemTm";
import WarnSystemPT from "./_currentView/warnSystemPt";
import WarnSystemCL from "./_currentView/warnSystemCl";
import WarnZx from "./_currentView/warnZx";

export default {
  components: { WarnSystemTM, WarnSystemPT, WarnSystemCL,WarnZx },
  name: "home",

  data() {
    let data={
      patent: {}, // 专利预警
      trademark: {}, // 商标预警
      patent_write: {}, // 专利撰写
      clue: {} // 客户线索
    };
    return data
  },

  methods: {
    jj(){
      $app.alert('真开心123')
    }
  },
  created() {
    // 获取企业信息
    $ajax.pInfo(resData => {
      // 部分用户，可能没有实名认证，resData为空
      if ($app.judgeData(resData)) {
        let { warning_number } = resData;

        this.patent = $app.judgeData(warning_number) && warning_number.patent;
        this.trademark =$app.judgeData(warning_number) && warning_number.trademark;
        this.clue = $app.judgeData(warning_number) && warning_number.clue;
        this.patent_write= $app.judgeData(warning_number) && warning_number.patent_write;
      }
    });


    
  }
};
</script>

